<%-- 
    Document   : New lecture content form
    Created on : Nov 28, 2013, 12:27:44 PM
    Author     : Michal Fucik (395624) michal.fuca.fucik(at)gmail.com
--%>

<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:errors/>
<table>
    <tr>
        <th><s:label for="d0" ><f:message key="lecture.entity.label"/></s:label></th><%--nazev pole, bere podle lokalizace proto vse male--%>
        <td><s:text id="d0" name="lecture.label"/></td> <%--nazev atributu usera. Bere z UserDTO, proto camelCase--%>
    </tr>
    <tr>
        <th><s:label for="d1" ><f:message key="lecture.entity.topicDescription"/></s:label></th>
        <td><s:textarea id="d1" name="lecture.topicDescription"/></td>
    </tr>
    <tr>
        <th><s:label for="timepicker" ><f:message key="lecture.entity.tpTime"/></s:label></th>
        <td><s:text id="timepicker" name="time"/></td>
    </tr>
    <tr>
        <th><s:label for="b2" ><f:message key="lecture.entity.course"/></s:label></th>
        <td><s:select id="b2" name="courseId">
                <s:options-collection collection="${actionBean.courses}" value="id" label="code"/>
            </s:select></td>
    </tr>
    <tr>
        <th><s:label for="b3" ><f:message key="lecture.entity.tpDay"/></s:label></th>
        <td><s:select id="b3" name="lecture.tpDay">
                <s:options-enumeration enum="cz.muni.fi.pa165.languageschool.utils.DayOfWeek"/>
            </s:select></td>
    </tr>    

    <tr>
        <th><s:label for="b4" ><f:message key="lecture.entity.lecturer"/></s:label></th>
        <td><s:select id="b4" name="lecturerId">
                <s:options-collection collection="${actionBean.lecturers}" value="id" label="lastName"/>
            </s:select></td>
    </tr>
</table>